{% extends "base.html" %}
{% block title %}登录{% endblock %}
{% block content %}
<div class="alert alert-error" role="alert"> {{ info }}</div>
<form action="{% url 'login' %}" method="post">
{% csrf_token %}
{{form.as_p}}
<input type="submit" value="提交" />
</form>
{% endblock %}